from django.http import HttpResponse
from django.shortcuts import render

from book.models import BookInfo


# Create your views here.
def create_book(request):
        book=BookInfo.objects.create(
            name='abc',
            pub_date='2025-7-31',
            readcount=10
        )

        return HttpResponse('create')
def shop(request,city_id,shop_id):
    #print(city_id,shop_id)
    # a = request.GET.get('a')
    # b = request.GET.get('b')
    # alist = request.GET.getlist('a')
    # print(a)  # 3
    # print(b)  # 2
    # print(alist)  # ['1', '3']
    return HttpResponse('hahaha')